package com.moshang.blog.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.data.annotation.Id;

import java.io.Serializable;
import java.util.Date;

/**
 * @program: blog
 * @description: 点赞表
 * @author: moshang
 * @create: 2019-01-04 15:21
 **/
@Data
@TableName("tbl_great")
public class TblGreat implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer articleId;
    private Integer userId;
    /**
     * 0取消点赞，1点赞
     */
    private Integer status;
    private Date createTime;
    private Date updateTime;

    public TblGreat(Integer articleId, Integer userId, Integer status) {
        this.articleId = articleId;
        this.userId = userId;
        this.status = status;
    }

    public TblGreat() {

    }
}
